package yxy.game.pm2.module.camptower;

import org.joda.time.DateTimeConstants;
import yxy.game.pm2.bean.area.AreaBean;
import yxy.game.pm2.bean.timeline.FutureRunnable;

/**
 * 阵营塔发奖-需求取消
 *
 * @ClassName CampTowerFuture
 * @Author jingtao-zheng
 * @Date 2022/8/9 11:00
 * @Version 1.0
 **/
@Deprecated
public class CampTowerFuture extends FutureRunnable {
    @Override
    public void init() {
        handle();
    }

    @Override
    public void tick() {
        handle();
    }

    @Override
    public long period() {
        return DateTimeConstants.MILLIS_PER_MINUTE * 10;// 10分钟一刷
    }

    private void handle() {
        try {
            //遍历所有区服
            for (AreaBean areaBean : AreaBean.all()) {
//                int areaId = areaBean.getAreaId();
//                CampTowerFutureHandle weiCampTowerFutureHandle = new CampTowerFutureHandle(Constant.WEI,areaId);
//                CampTowerFutureHandle shuCampTowerFutureHandle = new CampTowerFutureHandle(Constant.SHU,areaId);
//                CampTowerFutureHandle wuCampTowerFutureHandle = new CampTowerFutureHandle(Constant.WU,areaId);
//                CampTowerFutureHandle qunCampTowerFutureHandle = new CampTowerFutureHandle(Constant.QUN,areaId);
//
//                weiCampTowerFutureHandle.handle();
//                shuCampTowerFutureHandle.handle();
//                wuCampTowerFutureHandle.handle();
//                qunCampTowerFutureHandle.handle();
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

